<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class ContactController extends Controller
{
    public function npost(){
	if( !empty( $_POST ) ){
	   if( $_POST['pwd'] == 'yxsj') {
		return redirect( "https://kdt.im/u_ZtGr" );
	   }else{
		$pro = '密码错误';
	       return view ( 'npost' , [ 'pro' => $pro ] ); 
	   }
	}else{ 
		$pro = '';
		return view( 'npost' , ['pro' => $pro]);
	}
    }
}
